<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<{:date('Y/m/d H:i:s',time())}>
<br>
<{$name|upper}>
<br>
<{$name|lower}>
<br>
<{$arr|first}>
<br>
<{$arr|last}>
<br>
<{$name|format='%b'}>






<br>
<{$value?$value:'默认值'}> <br>  //不为空输出￥value 空则输出默认值
<br>
<{$value??'默认值'}>       <br>  //$value设置输出$value 没设置输出默认值
<br>
<{$value?='默认值'}>       <br>  //如果$value不为空 则输出默认值
<br>
<{$value?:'默认值'}>       <br>  //$value不为空输出$value 为空输出默认值
<br>
<{$value==='1'?'真':'假'}> <br>  //表达式结果为ture输出真 fales为假
<{$value==='1'?'1':'2'}>
<{$value?'我是你爸':$value}>
<br>
<{foreach name='arr2' item='vo'}>
    <{$vo['id']}>===<{$vo['name']}> <br>
<{/foreach}>
<br>
<{foreach $arr2 as $key=>$vo}>
<{$key}>    <{$vo.id}>  <{$vo.name}> <br>
<{/foreach}>[[
<br>
<{volist name='arr2' id='vo'}>
    <{$key}>:<{$vo.id}>:<{$vo.name}> <br>
<{/volist}>
<br>
<br>
<br>
<{for start='0' end='3' comparison="lt" step='1' name='i'}>
    <{$i}> <br>
<{/for}>
<br>
<br>
<br>
<{eq name='name' value='2'}>
    相等
<{else /}>
    不相等
<{/eq}>

<br>
<{gt name='name' value='996'}>
    大于
<{else /}>
    不大于
<{/gt}>
<br>
<{if $name==1}>
    value值等于1
<{elseif $name ==2 /}>
    value值等于2
<{else /}>
    value值不知道等于几
<{/if}>
</body>
</html>

